<route lang="json5" type="page">
{
  layout: 'tabbar',
  style: {
    navigationBarTitleText: '我的订单',
    navigationBarBackgroundColor: '#fff',
  },
}
</route>

<template>
  <view class="">
    <div class="card">
      <div class="head">
        <div class="number">订单号213123123123</div>
        <div class="status">支付成功</div>
      </div>
      <wd-divider>助学堂</wd-divider>
      <div class="content">
        <img src="https://via.placeholder.com/67x67.png/3c9cff/fff" alt="" />
        <div class="right">
          <div class="line1">
            <div class="name">语文</div>
            <div class="number">1</div>
          </div>
          <div class="line2">
            <div class="price">单价：100元</div>
          </div>
          <div class="line3">
            <div class="total">总计：100元</div>
          </div>
        </div>
      </div>
      <wd-divider>2021-10-10 10:10:10</wd-divider>
      <div class="footer">
        <div class="pay">实际支付：100元</div>
        <div class="cancel">取消订单</div>
      </div>
    </div>
  </view>
</template>

<script lang="ts" setup>
//
</script>

<style lang="scss" scoped>
.card {
  margin: 10px;
  background-color: #fff;
  border-radius: 5%;

  .head {
    display: flex;
    justify-content: space-between;
    margin: 5px;
  }
  .content {
    display: flex;
    align-items: center;
    padding: 10px;
    img {
      width: 67px;
      height: 67px;
      margin-right: 10px;
    }
    .right {
      display: flex;
      flex: 1;
      flex-direction: column;
      .line1 {
        display: flex;
        justify-content: space-between;
        margin: 5px;
      }
    }
  }
  .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
  }
}
</style>
